DB Error: ERROR: invalid input syntax for integer: "" LINE 1: SELECT * FROM partidos_politicos WHERE id = '' AND estado = ... ^